package com.jsy.testlock.mapper;

import com.jsy.testlock.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;


/**
 * (Product)表数据库访问层
 *
 * @author: SongyangJi
 * @since: 2021-11-30 20:44:00
 * @description:
 */
@Mapper
@Repository
public interface ProductMapper extends BaseMapper<Product> {

    Product selectProductXLock(int id);

    void decr(Product product);

    Product selectProduct(int id);

    int decrOptimisticLock(Product product);

}
